import service from '@/utils/request'

export const useTestInfoApi = (id: number) => {
	return service.get('/user/info/' + id)
}

export const useTestInfoSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/user/info', dataForm)
	} else {
		return service.post('/user/info', dataForm)
	}
}